From 50859d9efe46db5694e0bb98a101a4c0bcd5762e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 16 Dec 2015 19:05:49 +0100 Subject: [PATCH] GdkWindow: Add a few ignore deprecations statements around GdkDeviceManager There's places where we still need to deal with floating devices, which are unseen by seats. Ignore deprecations and keep using GdkDeviceManager until we can forget about floating devices. --- gdk/gdkwindow.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index d36400e57e..57ffa641e1 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5371,6 +5371,8 @@ gdk_window_hide (GdkWindow *window) GdkDeviceManager *device_manager; GList *devices, *d; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + /* May need to break grabs on children */ display = gdk_window_get_display (window); device_manager = gdk_display_get_device_manager (display); @@ -5394,6 +5396,7 @@ gdk_window_hide (GdkWindow *window) window->state = GDK_WINDOW_STATE_WITHDRAWN; g_list_free (devices); + G_GNUC_END_IGNORE_DEPRECATIONS; } did_hide = _gdk_window_update_viewable (window); @@ -8499,6 +8502,7 @@ gdk_window_set_source_events (GdkWindow *window, g_return_if_fail (GDK_IS_WINDOW (window)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; display = gdk_window_get_display (window); device_manager = gdk_display_get_device_manager (display); @@ -8514,6 +8518,7 @@ gdk_window_set_source_events (GdkWindow *window, } g_list_free (devices); + G_GNUC_END_IGNORE_DEPRECATIONS; /* Update accounting */ if (G_UNLIKELY (!window->source_event_masks)) -- 2.30.2